<?php
$bannerSize = count($data['banner']);
//dump($data);
//dump($_ENV);
?>
<!DOCTYPE html>
<html lang="zhcn">
<head>
    <include file="Common/meta" />
    <title>学生搜索结果 - {$_ENV['site'][0]['title']}</title>
    <include file="Common/link" />
    <style>

    </style>
</head>
<body>
<header class="layout-header">
    <div class="container">
        <div class="search-box dropdown">
            <button type="button" class="btn search-select dropdown-toggle"
                    data-toggle="dropdown">
                <span id="tc-select-text">学生</span>
                <i class="icon icon-down"></i>
            </button>
            <ul id="tc-select" class="dropdown-menu" role="menu">
                <li><a href="#" data-value="0">学生</a></li>
                <li><a href="#" data-value="1">企业</a></li>
                <!--<li><a href="#" data-value="2">资讯</a></li>-->
                <li><a href="#" data-value="3">竞赛</a></li>
            </ul>
            <input id="search-input" class="search-input" value="{$data['key']}" placeholder="请输入关键字搜索">
            <a href="#"></a> <i id="search-btn" class="icon icon-search"></i>
        </div>
        <a class="header-back" href="/"><i class="icon icon-left"></i></a>
    </div>
</header>
<include file="Common/header" />
<div class="layout-body">
    <div class="container">
        <if condition="count($data['list']) eq 0">
            <div class="content-empty show">
                <div class="picture"></div>
                <div class="no-data">没有符合该搜索条件的学生</div>
            </div>
        </if>
        <ul class="list-common">
            <?php
            $comSize = count($data['list']);
            ?>
            <for start="0" end="$comSize">
                <?php
            $stu = $data['list'][$i];
            ?>
                <li class="list-item stu-search-list">
                    <img class="item-logo" src="{$stu['photo']}">
                    <div class="item-info">
                        <a class="item-title" href="/user/detail?id={$stu['id']}" target="_blank">{$stu['name']}</a>
                        <ul class="item-tag-list">
                        </ul>
                        <div class="school">{$stu['school']}</div>
                        <span class="profession">{$stu['professional']}</span>
                    </div>
                    <!--<div class="item-parise"><i class="icon icon-praise"></i> {$stu['parise']}</div>-->
                </li>
            </for>
        </ul>
        <a id="load-more-stu" class="btn btn-more" href="#">加载更多</a>
        <include file="Common/search_page" />
    </div>
</div>
<script>
    var page = {
        keyword: '{$data['key']}',
        searchType: 0,
        searchArea: '{$data['area']}',
        searchIndustry: '{$data['indus']}',
        page: '{$data['page']}',
    };
</script>
<include file="Common/script" />
<script src="__PUBLIC__/asset/js/search.js"></script>
</body>
</html>